<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateAdsUsersTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('ads', function(Blueprint $table)
		{
			$table->increments('id');
			$table->timestamps();
			//图片链接
			$table->string('image');
			//跳转链接
			$table->text('link');
			//排序
            $table->tinyInteger('order');
            //类型
            $table->tinyInteger('type');
            //简介
            $table->text("description");
            //标题
            $table->string("title");
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('ads');
	}

}
